package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {
    //分页条件查询
    Page<Setmeal> findbyPage(Integer pageNum, Integer pageSize, String name);


//回显数据
    List<Dish> findbyType(Long categoryId, String name);
    //新增套餐
    void save(Setmeal setmeal);

    //套餐回显
    Setmeal findById(Long id);
//修改套餐
    void update(Setmeal setmeal);

    //启停售卖
    void updateStatus(Integer status, List<Long> ids);
//套餐删除
    void delete(List<Long> ids);
//根据分类id+ 状态查询套餐列表
    List<Setmeal> findList(Long categoryId, Integer status);
//查看套餐详情
    List<Dish> findDishDateil(Long id);
}
